import './styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'



// 引入自定义懒加载插件
import {imgLazyPlugin } from '@/directives/index'
// 全局组件注册
import { componentPluign } from '@/components/index'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)

// 注册懒加载插件
app.use(imgLazyPlugin, {
     
})
// 注册全局组件
app.use(componentPluign)

app.mount('#app')

